package com.tanhua.houtai.server.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.domain.vo.PageResult;
import com.tanhua.domain.vo.SoundTimeVo;
import com.tanhua.dubbo.api.mongo.SoundApi;
import com.tanhua.houtai.server.service.SoundTimeService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

@Service
public class SoundTimeServiceImpl implements SoundTimeService {
    @Reference
    private SoundApi soundApi;

    @Override
    public PageResult getList(int page, int pagesize, String id) {
        PageResult page1=  soundApi.getSoundTimeList(page,pagesize,id);
     return page1;
    }

    @Override
    public void updatehide(String id) {
        soundApi.updateSoundTimeAd(id);
    }

    @Override
    public void updateTime(String id,String time) {
        soundApi.updateSoundTimeTime(id,time);
    }
}
